<template>
  <div class="dljjc_box3_x" style="min-height: 100vh">
    <m-tabs
      :value="data.tab"
      :data="data"
      @update:value="cfg.tabhand"
      :list="[{ name: 'cloud_cmd', title: '云指令管理' }]"
    />
    <template v-if="data.tab == 'cloud_cmd'">
      <template v-if="cfg.qxpd(['bz']) == true">
        <component :is="rinbot_cloud_cmd" />
      </template>
      <div class="nbox1" v-else>
        <n-result
          status="403"
          title="禁止访问"
          description="云指令管理不允许普通用户访问，请使用管理组权限访问该页面"
        >
        </n-result>
      </div>
    </template>
  </div>
</template>

<script>
import { cfg } from "@/cfg/cfg.js";
import rinbot_cloud_cmd from "./comp/rinbot_cloud_cmd.vue";
export default {
  setup() {
    const set = {};
    let data = reactive({
      tab: cfg.route.query.tab ?? "cloud_cmd",
    });

    onMounted(async () => {});
    return { rinbot_cloud_cmd, data, cfg, set };
  },
};
</script>
